1 //------------------------------------------------------------------------------
2 // <copyright file="varlist.cs" company="Microsoft">
4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
11 // You must not remove this notice, or any other, from this software.
14 //------------------------------------------------------------------------------
19 using System
.Collections
;
28 vhash
= new Hashtable(8); // arbitrary initial size
29 vindex
= 0; // init the index count
32 public void add(Var e
)
36 vhash
.Add(e
.getName(), e
);
40 public Var
FindByName(String s
)
48 public Var
FindByIndex(int i
)
59 return vindex
; // number of items in hash